package lab02.test22;

public class Test22 {
    public static void main(String[] args) {
        String result = "Hello,World! 2017!";
        //StringBuffer();  StringBuffer.append()   追加
        for (int i = 0;i<result.length();i++){
            char tmp = result.charAt(i);

            if (tmp>='A'&&tmp<='Z'){
                System.out.print((char) (tmp + 32));
            }else if (tmp>='a'&&tmp<='z'){
                System.out.print(tmp);
            }else if (tmp>='0'&&tmp<='9'){
                System.out.print("0");
            }else {
                System.out.print("#");
            }
        }
    }
}
